#!/usr/bin/env bash

echo "=====开始构建vue_didiok_admin前端项目====="
echo "=====开始npm install & npm run build vue_didiok_admin====="
echo "=====构建比较慢 请稍等====="

npm config list
npm cache clean --force
#npm cache verify
#npm config set registry https://registry.npmmirror.com
#npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass/
#npm config list

npm install chromedriver@2.46.0 --ignore-scripts

#npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass --unsafe-perm
npm i node-sass --unsafe-perm
#npm install  --registry=https://registry.npm.taobao.org  --unsafe-perm
npm install  --unsafe-perm

npm run build

echo "npm构建完成"